#include<iostream>
using namespace std;

int main()              //计算乘方
{
    int a,n;
    cin >> a >> n;
    int an = 1;
    for(int i=0;i<n;i++)
    {
        an = an*a; 
    }
    cout << an << endl;
    return 0;
}